/**
 * @author bipul_sinha
 * @version 1.0
 * @created 10th November, 2010.
 *
 * IEntity
 *
 * Copyright @ 2010 by 
 * All Rights Reserved.
 * CONFIDENTIAL AND TRADE SECRET
 */
package com.ces.knacky.framework.model;

/**
 * This interface is the parent of all  model objects of the persistence layer. It has two major 
 * contract definition for fields Id and Description.
 * 
 * @author bipul_sinha
 *
 */
public interface IEntity {
	
	/**
	 * This method is used to set the identifier of the persistent object.
	 * 
	 * @param 	id
	 * 			Represents id of the current persistent object.
	 */
    public void setId (Integer id);

    /**
     * This method is used to return the Id value of the current persistent object.
     * 
     * @return 	Integer
     * 			Represents id of the current persistent object.	
     */
    public Integer getId ();    
    
	/**
	 * This method is used to set the description of the persistent object.
	 * 
	 * @param 	descriptin
	 * 			Represents description of the current persistent object.
	 */
    public void setDescription (String description);
    
    /**
     * This method is used to return the description value of the current persistent object.
     * 
     * @return	String
     * 			Represents description of the current persistent object.
     */
    public String getDescription ();

}

